package interfaz;


import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 * Panel con imagen del menu principal
 * @author tp DIED
 *
 */
@SuppressWarnings("serial")
public class PanelConImagen extends JPanel {

	

	public PanelConImagen(){

}
	
@Override
public void paintComponent (Graphics g){
Dimension tamanio = getSize();
ImageIcon imagenFondo = new ImageIcon(getClass().getResource("/imagen/fondo.jpg"));
g.drawImage(imagenFondo.getImage(),0,0,tamanio.width, tamanio.height, null);
setOpaque(false);
super.paintComponent(g);
}
}